if (isnil "MP_rights_list" || isnull player) exitwith {[]};

private ["_rights","_idx"];
_rights = [];
// {
        // if (_this == (_x select 0)) exitwith {
                // _rights = _x select 1;
        // };
// } foreach MP_rights_list;
_idx = (MSO_R_Players find _uid);
if (_idx >= 0) then {
	_rights = MSO_R_PlayerRoles select _idx;
};
_rights;